PROJECT(x86Application)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

#SET(CMAKE_BUILD_TYPE Debug)
#SET(CMAKE_BUILD_TYPE Release)

SET(CMAKE_C_FLAGS_DEBUG "-g3")
SET(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG")

SET(CMAKE_CXX_FLAGS_DEBUG "-g3")
SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")

ADD_DEFINITIONS(-Wall -Wno-strict-aliasing)

SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
MESSAGE(STATUS "Execute output dir: " ${EXECUTABLE_OUTPUT_PATH})

SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
MESSAGE(STATUS "Library output dir: " ${LIBRARY_OUTPUT_PATH})
#add_definitions(-DMODULE_TEST)
add_definitions(-DUSE_TCP_CONN)
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/exports)
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/3rdparty/include)
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/asn/exports)
LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH})
LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/3rdparty/lib)
# Add modules here
ADD_SUBDIRECTORY(libfdt)
ADD_SUBDIRECTORY(syscore)
ADD_SUBDIRECTORY(common)
ADD_SUBDIRECTORY(oam)
ADD_SUBDIRECTORY(3gdongle)
ADD_SUBDIRECTORY(sqlite)
ADD_SUBDIRECTORY(pactrl)
ADD_SUBDIRECTORY(gps)
ADD_SUBDIRECTORY(gsm)
ADD_SUBDIRECTORY(cdma)
ADD_SUBDIRECTORY(msgproc)
ADD_SUBDIRECTORY(datam)
ADD_SUBDIRECTORY(dataproc)
ADD_SUBDIRECTORY(app)
ADD_SUBDIRECTORY(system)
ADD_SUBDIRECTORY(fep)
ADD_SUBDIRECTORY(bs_cps)
ADD_SUBDIRECTORY(fwmgr)
ADD_SUBDIRECTORY(powerctrl)
ADD_SUBDIRECTORY(fim)
ADD_SUBDIRECTORY(eutran)
ADD_SUBDIRECTORY(asn)
ADD_SUBDIRECTORY(sysMonitor)
ADD_SUBDIRECTORY(dataReport)
ADD_SUBDIRECTORY(logServer)
ADD_SUBDIRECTORY(wcdma)
ADD_SUBDIRECTORY(tdscdma)
ADD_SUBDIRECTORY(wifi)
ADD_SUBDIRECTORY(flexapi)
ADD_SUBDIRECTORY(scanner)
ADD_SUBDIRECTORY(wifiboard)
ADD_SUBDIRECTORY(gpsboard)


